(0) Obligation:

Clauses:

slowsort(X, Y) :- ','(perm(X, Y), sorted(Y)).
sorted([]).
sorted(.(X, [])).
sorted(.(X, .(Y, Z))) :- ','(le(X, Y), sorted(.(Y, Z))).
perm([], []).
perm(.(X, .(Y, [])), .(U, .(V, []))) :- ','(delete(U, .(X, Y), Z), perm(Z, V)).
delete(X, .(X, Y), Y).
delete(X, .(Y, Z), W) :- delete(X, Z, W).
le(s(X), s(Y)) :- le(X, Y).
le(0, s(X)).
le(0, 0).

Query: slowsort(g,a)

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph ICLP10.

(2) Obligation:

Clauses:

deleteA(T70, .(T70, T71), T71).
deleteA(T81, .(T79, T80), X88) :- deleteA(T81, T80, X88).
deleteB(T41, T41, T42, T42).
deleteB(T57, T55, T56, X59) :- deleteA(T57, T56, X59).
permC([], []).
permC(.(T95, .(T96, [])), .(T99, .(T100, []))) :- deleteB(T99, T95, T96, X106).
permC(.(T95, .(T96, [])), .(T99, .(T106, []))) :- ','(deleteB(T99, T95, T96, T105), permC(T105, T106)).
leD(s(T132), s(T133)) :- leD(T132, T133).
leD(0, s(T140)).
leD(0, 0).
slowsortE([], []).
slowsortE(.(T16, .(T17, [])), .(T20, .(T21, []))) :- deleteB(T20, T16, T17, X22).
slowsortE(.(T16, .(T17, [])), .(T28, .(T27, []))) :- ','(deleteB(T28, T16, T17, T26), permC(T26, T27)).
slowsortE(.(T16, .(T17, [])), .(T118, .(T119, []))) :- ','(deleteB(T118, T16, T17, T26), ','(permC(T26, T119), leD(T118, T119))).
slowsortE(.(T16, .(T17, [])), .(T118, .(T145, []))) :- ','(deleteB(T118, T16, T17, T26), ','(permC(T26, T145), leD(T118, T145))).

Query: slowsortE(g,a)

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes:
slowsortE_in: (b,f)
deleteB_in: (f,b,b,f)
deleteA_in: (f,b,f)
permC_in: (b,f)
leD_in: (b,f)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

slowsortE_in_ga([], []) → slowsortE_out_ga([], [])
slowsortE_in_ga(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_ga(T16, T17, T20, T21, deleteB_in_agga(T20, T16, T17, X22))
deleteB_in_agga(T41, T41, T42, T42) → deleteB_out_agga(T41, T41, T42, T42)
deleteB_in_agga(T57, T55, T56, X59) → U2_agga(T57, T55, T56, X59, deleteA_in_aga(T57, T56, X59))
deleteA_in_aga(T70, .(T70, T71), T71) → deleteA_out_aga(T70, .(T70, T71), T71)
deleteA_in_aga(T81, .(T79, T80), X88) → U1_aga(T81, T79, T80, X88, deleteA_in_aga(T81, T80, X88))
U1_aga(T81, T79, T80, X88, deleteA_out_aga(T81, T80, X88)) → deleteA_out_aga(T81, .(T79, T80), X88)
U2_agga(T57, T55, T56, X59, deleteA_out_aga(T57, T56, X59)) → deleteB_out_agga(T57, T55, T56, X59)
U7_ga(T16, T17, T20, T21, deleteB_out_agga(T20, T16, T17, X22)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T20, .(T21, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_ga(T16, T17, T28, T27, deleteB_in_agga(T28, T16, T17, T26))
U8_ga(T16, T17, T28, T27, deleteB_out_agga(T28, T16, T17, T26)) → U9_ga(T16, T17, T28, T27, permC_in_ga(T26, T27))
permC_in_ga([], []) → permC_out_ga([], [])
permC_in_ga(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_ga(T95, T96, T99, T100, deleteB_in_agga(T99, T95, T96, X106))
U3_ga(T95, T96, T99, T100, deleteB_out_agga(T99, T95, T96, X106)) → permC_out_ga(.(T95, .(T96, [])), .(T99, .(T100, [])))
permC_in_ga(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_ga(T95, T96, T99, T106, deleteB_in_agga(T99, T95, T96, T105))
U4_ga(T95, T96, T99, T106, deleteB_out_agga(T99, T95, T96, T105)) → U5_ga(T95, T96, T99, T106, permC_in_ga(T105, T106))
U5_ga(T95, T96, T99, T106, permC_out_ga(T105, T106)) → permC_out_ga(.(T95, .(T96, [])), .(T99, .(T106, [])))
U9_ga(T16, T17, T28, T27, permC_out_ga(T26, T27)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T28, .(T27, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T118, .(T119, []))) → U10_ga(T16, T17, T118, T119, deleteB_in_agga(T118, T16, T17, T26))
U10_ga(T16, T17, T118, T119, deleteB_out_agga(T118, T16, T17, T26)) → U11_ga(T16, T17, T118, T119, permC_in_ga(T26, T119))
U11_ga(T16, T17, T118, T119, permC_out_ga(T26, T119)) → U12_ga(T16, T17, T118, T119, leD_in_ga(T118, T119))
leD_in_ga(s(T132), s(T133)) → U6_ga(T132, T133, leD_in_ga(T132, T133))
leD_in_ga(0, s(T140)) → leD_out_ga(0, s(T140))
leD_in_ga(0, 0) → leD_out_ga(0, 0)
U6_ga(T132, T133, leD_out_ga(T132, T133)) → leD_out_ga(s(T132), s(T133))
U12_ga(T16, T17, T118, T119, leD_out_ga(T118, T119)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T118, .(T119, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T118, .(T145, []))) → U13_ga(T16, T17, T118, T145, deleteB_in_agga(T118, T16, T17, T26))
U13_ga(T16, T17, T118, T145, deleteB_out_agga(T118, T16, T17, T26)) → U14_ga(T16, T17, T118, T145, permC_in_ga(T26, T145))
U14_ga(T16, T17, T118, T145, permC_out_ga(T26, T145)) → U15_ga(T16, T17, T118, T145, leD_in_ga(T118, T145))
U15_ga(T16, T17, T118, T145, leD_out_ga(T118, T145)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T118, .(T145, [])))

The argument filtering Pi contains the following mapping:
slowsortE_in_ga(x1, x2)  =  slowsortE_in_ga(x1)
[]  =  []
slowsortE_out_ga(x1, x2)  =  slowsortE_out_ga
.(x1, x2)  =  .(x1, x2)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
deleteB_in_agga(x1, x2, x3, x4)  =  deleteB_in_agga(x2, x3)
deleteB_out_agga(x1, x2, x3, x4)  =  deleteB_out_agga(x1, x4)
U2_agga(x1, x2, x3, x4, x5)  =  U2_agga(x5)
deleteA_in_aga(x1, x2, x3)  =  deleteA_in_aga(x2)
deleteA_out_aga(x1, x2, x3)  =  deleteA_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
permC_in_ga(x1, x2)  =  permC_in_ga(x1)
permC_out_ga(x1, x2)  =  permC_out_ga
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
U11_ga(x1, x2, x3, x4, x5)  =  U11_ga(x3, x5)
U12_ga(x1, x2, x3, x4, x5)  =  U12_ga(x5)
leD_in_ga(x1, x2)  =  leD_in_ga(x1)
s(x1)  =  s(x1)
U6_ga(x1, x2, x3)  =  U6_ga(x3)
0  =  0
leD_out_ga(x1, x2)  =  leD_out_ga
U13_ga(x1, x2, x3, x4, x5)  =  U13_ga(x5)
U14_ga(x1, x2, x3, x4, x5)  =  U14_ga(x3, x5)
U15_ga(x1, x2, x3, x4, x5)  =  U15_ga(x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

slowsortE_in_ga([], []) → slowsortE_out_ga([], [])
slowsortE_in_ga(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_ga(T16, T17, T20, T21, deleteB_in_agga(T20, T16, T17, X22))
deleteB_in_agga(T41, T41, T42, T42) → deleteB_out_agga(T41, T41, T42, T42)
deleteB_in_agga(T57, T55, T56, X59) → U2_agga(T57, T55, T56, X59, deleteA_in_aga(T57, T56, X59))
deleteA_in_aga(T70, .(T70, T71), T71) → deleteA_out_aga(T70, .(T70, T71), T71)
deleteA_in_aga(T81, .(T79, T80), X88) → U1_aga(T81, T79, T80, X88, deleteA_in_aga(T81, T80, X88))
U1_aga(T81, T79, T80, X88, deleteA_out_aga(T81, T80, X88)) → deleteA_out_aga(T81, .(T79, T80), X88)
U2_agga(T57, T55, T56, X59, deleteA_out_aga(T57, T56, X59)) → deleteB_out_agga(T57, T55, T56, X59)
U7_ga(T16, T17, T20, T21, deleteB_out_agga(T20, T16, T17, X22)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T20, .(T21, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_ga(T16, T17, T28, T27, deleteB_in_agga(T28, T16, T17, T26))
U8_ga(T16, T17, T28, T27, deleteB_out_agga(T28, T16, T17, T26)) → U9_ga(T16, T17, T28, T27, permC_in_ga(T26, T27))
permC_in_ga([], []) → permC_out_ga([], [])
permC_in_ga(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_ga(T95, T96, T99, T100, deleteB_in_agga(T99, T95, T96, X106))
U3_ga(T95, T96, T99, T100, deleteB_out_agga(T99, T95, T96, X106)) → permC_out_ga(.(T95, .(T96, [])), .(T99, .(T100, [])))
permC_in_ga(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_ga(T95, T96, T99, T106, deleteB_in_agga(T99, T95, T96, T105))
U4_ga(T95, T96, T99, T106, deleteB_out_agga(T99, T95, T96, T105)) → U5_ga(T95, T96, T99, T106, permC_in_ga(T105, T106))
U5_ga(T95, T96, T99, T106, permC_out_ga(T105, T106)) → permC_out_ga(.(T95, .(T96, [])), .(T99, .(T106, [])))
U9_ga(T16, T17, T28, T27, permC_out_ga(T26, T27)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T28, .(T27, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T118, .(T119, []))) → U10_ga(T16, T17, T118, T119, deleteB_in_agga(T118, T16, T17, T26))
U10_ga(T16, T17, T118, T119, deleteB_out_agga(T118, T16, T17, T26)) → U11_ga(T16, T17, T118, T119, permC_in_ga(T26, T119))
U11_ga(T16, T17, T118, T119, permC_out_ga(T26, T119)) → U12_ga(T16, T17, T118, T119, leD_in_ga(T118, T119))
leD_in_ga(s(T132), s(T133)) → U6_ga(T132, T133, leD_in_ga(T132, T133))
leD_in_ga(0, s(T140)) → leD_out_ga(0, s(T140))
leD_in_ga(0, 0) → leD_out_ga(0, 0)
U6_ga(T132, T133, leD_out_ga(T132, T133)) → leD_out_ga(s(T132), s(T133))
U12_ga(T16, T17, T118, T119, leD_out_ga(T118, T119)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T118, .(T119, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T118, .(T145, []))) → U13_ga(T16, T17, T118, T145, deleteB_in_agga(T118, T16, T17, T26))
U13_ga(T16, T17, T118, T145, deleteB_out_agga(T118, T16, T17, T26)) → U14_ga(T16, T17, T118, T145, permC_in_ga(T26, T145))
U14_ga(T16, T17, T118, T145, permC_out_ga(T26, T145)) → U15_ga(T16, T17, T118, T145, leD_in_ga(T118, T145))
U15_ga(T16, T17, T118, T145, leD_out_ga(T118, T145)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T118, .(T145, [])))

The argument filtering Pi contains the following mapping:
slowsortE_in_ga(x1, x2)  =  slowsortE_in_ga(x1)
[]  =  []
slowsortE_out_ga(x1, x2)  =  slowsortE_out_ga
.(x1, x2)  =  .(x1, x2)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
deleteB_in_agga(x1, x2, x3, x4)  =  deleteB_in_agga(x2, x3)
deleteB_out_agga(x1, x2, x3, x4)  =  deleteB_out_agga(x1, x4)
U2_agga(x1, x2, x3, x4, x5)  =  U2_agga(x5)
deleteA_in_aga(x1, x2, x3)  =  deleteA_in_aga(x2)
deleteA_out_aga(x1, x2, x3)  =  deleteA_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
permC_in_ga(x1, x2)  =  permC_in_ga(x1)
permC_out_ga(x1, x2)  =  permC_out_ga
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
U11_ga(x1, x2, x3, x4, x5)  =  U11_ga(x3, x5)
U12_ga(x1, x2, x3, x4, x5)  =  U12_ga(x5)
leD_in_ga(x1, x2)  =  leD_in_ga(x1)
s(x1)  =  s(x1)
U6_ga(x1, x2, x3)  =  U6_ga(x3)
0  =  0
leD_out_ga(x1, x2)  =  leD_out_ga
U13_ga(x1, x2, x3, x4, x5)  =  U13_ga(x5)
U14_ga(x1, x2, x3, x4, x5)  =  U14_ga(x3, x5)
U15_ga(x1, x2, x3, x4, x5)  =  U15_ga(x5)

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

SLOWSORTE_IN_GA(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_GA(T16, T17, T20, T21, deleteB_in_agga(T20, T16, T17, X22))
SLOWSORTE_IN_GA(.(T16, .(T17, [])), .(T20, .(T21, []))) → DELETEB_IN_AGGA(T20, T16, T17, X22)
DELETEB_IN_AGGA(T57, T55, T56, X59) → U2_AGGA(T57, T55, T56, X59, deleteA_in_aga(T57, T56, X59))
DELETEB_IN_AGGA(T57, T55, T56, X59) → DELETEA_IN_AGA(T57, T56, X59)
DELETEA_IN_AGA(T81, .(T79, T80), X88) → U1_AGA(T81, T79, T80, X88, deleteA_in_aga(T81, T80, X88))
DELETEA_IN_AGA(T81, .(T79, T80), X88) → DELETEA_IN_AGA(T81, T80, X88)
SLOWSORTE_IN_GA(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_GA(T16, T17, T28, T27, deleteB_in_agga(T28, T16, T17, T26))
U8_GA(T16, T17, T28, T27, deleteB_out_agga(T28, T16, T17, T26)) → U9_GA(T16, T17, T28, T27, permC_in_ga(T26, T27))
U8_GA(T16, T17, T28, T27, deleteB_out_agga(T28, T16, T17, T26)) → PERMC_IN_GA(T26, T27)
PERMC_IN_GA(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_GA(T95, T96, T99, T100, deleteB_in_agga(T99, T95, T96, X106))
PERMC_IN_GA(.(T95, .(T96, [])), .(T99, .(T100, []))) → DELETEB_IN_AGGA(T99, T95, T96, X106)
PERMC_IN_GA(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_GA(T95, T96, T99, T106, deleteB_in_agga(T99, T95, T96, T105))
U4_GA(T95, T96, T99, T106, deleteB_out_agga(T99, T95, T96, T105)) → U5_GA(T95, T96, T99, T106, permC_in_ga(T105, T106))
U4_GA(T95, T96, T99, T106, deleteB_out_agga(T99, T95, T96, T105)) → PERMC_IN_GA(T105, T106)
SLOWSORTE_IN_GA(.(T16, .(T17, [])), .(T118, .(T119, []))) → U10_GA(T16, T17, T118, T119, deleteB_in_agga(T118, T16, T17, T26))
U10_GA(T16, T17, T118, T119, deleteB_out_agga(T118, T16, T17, T26)) → U11_GA(T16, T17, T118, T119, permC_in_ga(T26, T119))
U10_GA(T16, T17, T118, T119, deleteB_out_agga(T118, T16, T17, T26)) → PERMC_IN_GA(T26, T119)
U11_GA(T16, T17, T118, T119, permC_out_ga(T26, T119)) → U12_GA(T16, T17, T118, T119, leD_in_ga(T118, T119))
U11_GA(T16, T17, T118, T119, permC_out_ga(T26, T119)) → LED_IN_GA(T118, T119)
LED_IN_GA(s(T132), s(T133)) → U6_GA(T132, T133, leD_in_ga(T132, T133))
LED_IN_GA(s(T132), s(T133)) → LED_IN_GA(T132, T133)
SLOWSORTE_IN_GA(.(T16, .(T17, [])), .(T118, .(T145, []))) → U13_GA(T16, T17, T118, T145, deleteB_in_agga(T118, T16, T17, T26))
U13_GA(T16, T17, T118, T145, deleteB_out_agga(T118, T16, T17, T26)) → U14_GA(T16, T17, T118, T145, permC_in_ga(T26, T145))
U13_GA(T16, T17, T118, T145, deleteB_out_agga(T118, T16, T17, T26)) → PERMC_IN_GA(T26, T145)
U14_GA(T16, T17, T118, T145, permC_out_ga(T26, T145)) → U15_GA(T16, T17, T118, T145, leD_in_ga(T118, T145))
U14_GA(T16, T17, T118, T145, permC_out_ga(T26, T145)) → LED_IN_GA(T118, T145)

The TRS R consists of the following rules:

slowsortE_in_ga([], []) → slowsortE_out_ga([], [])
slowsortE_in_ga(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_ga(T16, T17, T20, T21, deleteB_in_agga(T20, T16, T17, X22))
deleteB_in_agga(T41, T41, T42, T42) → deleteB_out_agga(T41, T41, T42, T42)
deleteB_in_agga(T57, T55, T56, X59) → U2_agga(T57, T55, T56, X59, deleteA_in_aga(T57, T56, X59))
deleteA_in_aga(T70, .(T70, T71), T71) → deleteA_out_aga(T70, .(T70, T71), T71)
deleteA_in_aga(T81, .(T79, T80), X88) → U1_aga(T81, T79, T80, X88, deleteA_in_aga(T81, T80, X88))
U1_aga(T81, T79, T80, X88, deleteA_out_aga(T81, T80, X88)) → deleteA_out_aga(T81, .(T79, T80), X88)
U2_agga(T57, T55, T56, X59, deleteA_out_aga(T57, T56, X59)) → deleteB_out_agga(T57, T55, T56, X59)
U7_ga(T16, T17, T20, T21, deleteB_out_agga(T20, T16, T17, X22)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T20, .(T21, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_ga(T16, T17, T28, T27, deleteB_in_agga(T28, T16, T17, T26))
U8_ga(T16, T17, T28, T27, deleteB_out_agga(T28, T16, T17, T26)) → U9_ga(T16, T17, T28, T27, permC_in_ga(T26, T27))
permC_in_ga([], []) → permC_out_ga([], [])
permC_in_ga(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_ga(T95, T96, T99, T100, deleteB_in_agga(T99, T95, T96, X106))
U3_ga(T95, T96, T99, T100, deleteB_out_agga(T99, T95, T96, X106)) → permC_out_ga(.(T95, .(T96, [])), .(T99, .(T100, [])))
permC_in_ga(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_ga(T95, T96, T99, T106, deleteB_in_agga(T99, T95, T96, T105))
U4_ga(T95, T96, T99, T106, deleteB_out_agga(T99, T95, T96, T105)) → U5_ga(T95, T96, T99, T106, permC_in_ga(T105, T106))
U5_ga(T95, T96, T99, T106, permC_out_ga(T105, T106)) → permC_out_ga(.(T95, .(T96, [])), .(T99, .(T106, [])))
U9_ga(T16, T17, T28, T27, permC_out_ga(T26, T27)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T28, .(T27, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T118, .(T119, []))) → U10_ga(T16, T17, T118, T119, deleteB_in_agga(T118, T16, T17, T26))
U10_ga(T16, T17, T118, T119, deleteB_out_agga(T118, T16, T17, T26)) → U11_ga(T16, T17, T118, T119, permC_in_ga(T26, T119))
U11_ga(T16, T17, T118, T119, permC_out_ga(T26, T119)) → U12_ga(T16, T17, T118, T119, leD_in_ga(T118, T119))
leD_in_ga(s(T132), s(T133)) → U6_ga(T132, T133, leD_in_ga(T132, T133))
leD_in_ga(0, s(T140)) → leD_out_ga(0, s(T140))
leD_in_ga(0, 0) → leD_out_ga(0, 0)
U6_ga(T132, T133, leD_out_ga(T132, T133)) → leD_out_ga(s(T132), s(T133))
U12_ga(T16, T17, T118, T119, leD_out_ga(T118, T119)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T118, .(T119, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T118, .(T145, []))) → U13_ga(T16, T17, T118, T145, deleteB_in_agga(T118, T16, T17, T26))
U13_ga(T16, T17, T118, T145, deleteB_out_agga(T118, T16, T17, T26)) → U14_ga(T16, T17, T118, T145, permC_in_ga(T26, T145))
U14_ga(T16, T17, T118, T145, permC_out_ga(T26, T145)) → U15_ga(T16, T17, T118, T145, leD_in_ga(T118, T145))
U15_ga(T16, T17, T118, T145, leD_out_ga(T118, T145)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T118, .(T145, [])))

The argument filtering Pi contains the following mapping:
slowsortE_in_ga(x1, x2)  =  slowsortE_in_ga(x1)
[]  =  []
slowsortE_out_ga(x1, x2)  =  slowsortE_out_ga
.(x1, x2)  =  .(x1, x2)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
deleteB_in_agga(x1, x2, x3, x4)  =  deleteB_in_agga(x2, x3)
deleteB_out_agga(x1, x2, x3, x4)  =  deleteB_out_agga(x1, x4)
U2_agga(x1, x2, x3, x4, x5)  =  U2_agga(x5)
deleteA_in_aga(x1, x2, x3)  =  deleteA_in_aga(x2)
deleteA_out_aga(x1, x2, x3)  =  deleteA_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
permC_in_ga(x1, x2)  =  permC_in_ga(x1)
permC_out_ga(x1, x2)  =  permC_out_ga
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
U11_ga(x1, x2, x3, x4, x5)  =  U11_ga(x3, x5)
U12_ga(x1, x2, x3, x4, x5)  =  U12_ga(x5)
leD_in_ga(x1, x2)  =  leD_in_ga(x1)
s(x1)  =  s(x1)
U6_ga(x1, x2, x3)  =  U6_ga(x3)
0  =  0
leD_out_ga(x1, x2)  =  leD_out_ga
U13_ga(x1, x2, x3, x4, x5)  =  U13_ga(x5)
U14_ga(x1, x2, x3, x4, x5)  =  U14_ga(x3, x5)
U15_ga(x1, x2, x3, x4, x5)  =  U15_ga(x5)
SLOWSORTE_IN_GA(x1, x2)  =  SLOWSORTE_IN_GA(x1)
U7_GA(x1, x2, x3, x4, x5)  =  U7_GA(x5)
DELETEB_IN_AGGA(x1, x2, x3, x4)  =  DELETEB_IN_AGGA(x2, x3)
U2_AGGA(x1, x2, x3, x4, x5)  =  U2_AGGA(x5)
DELETEA_IN_AGA(x1, x2, x3)  =  DELETEA_IN_AGA(x2)
U1_AGA(x1, x2, x3, x4, x5)  =  U1_AGA(x5)
U8_GA(x1, x2, x3, x4, x5)  =  U8_GA(x5)
U9_GA(x1, x2, x3, x4, x5)  =  U9_GA(x5)
PERMC_IN_GA(x1, x2)  =  PERMC_IN_GA(x1)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x5)
U4_GA(x1, x2, x3, x4, x5)  =  U4_GA(x5)
U5_GA(x1, x2, x3, x4, x5)  =  U5_GA(x5)
U10_GA(x1, x2, x3, x4, x5)  =  U10_GA(x5)
U11_GA(x1, x2, x3, x4, x5)  =  U11_GA(x3, x5)
U12_GA(x1, x2, x3, x4, x5)  =  U12_GA(x5)
LED_IN_GA(x1, x2)  =  LED_IN_GA(x1)
U6_GA(x1, x2, x3)  =  U6_GA(x3)
U13_GA(x1, x2, x3, x4, x5)  =  U13_GA(x5)
U14_GA(x1, x2, x3, x4, x5)  =  U14_GA(x3, x5)
U15_GA(x1, x2, x3, x4, x5)  =  U15_GA(x5)

We have to consider all (P,R,Pi)-chains

(6) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

SLOWSORTE_IN_GA(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_GA(T16, T17, T20, T21, deleteB_in_agga(T20, T16, T17, X22))
SLOWSORTE_IN_GA(.(T16, .(T17, [])), .(T20, .(T21, []))) → DELETEB_IN_AGGA(T20, T16, T17, X22)
DELETEB_IN_AGGA(T57, T55, T56, X59) → U2_AGGA(T57, T55, T56, X59, deleteA_in_aga(T57, T56, X59))
DELETEB_IN_AGGA(T57, T55, T56, X59) → DELETEA_IN_AGA(T57, T56, X59)
DELETEA_IN_AGA(T81, .(T79, T80), X88) → U1_AGA(T81, T79, T80, X88, deleteA_in_aga(T81, T80, X88))
DELETEA_IN_AGA(T81, .(T79, T80), X88) → DELETEA_IN_AGA(T81, T80, X88)
SLOWSORTE_IN_GA(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_GA(T16, T17, T28, T27, deleteB_in_agga(T28, T16, T17, T26))
U8_GA(T16, T17, T28, T27, deleteB_out_agga(T28, T16, T17, T26)) → U9_GA(T16, T17, T28, T27, permC_in_ga(T26, T27))
U8_GA(T16, T17, T28, T27, deleteB_out_agga(T28, T16, T17, T26)) → PERMC_IN_GA(T26, T27)
PERMC_IN_GA(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_GA(T95, T96, T99, T100, deleteB_in_agga(T99, T95, T96, X106))
PERMC_IN_GA(.(T95, .(T96, [])), .(T99, .(T100, []))) → DELETEB_IN_AGGA(T99, T95, T96, X106)
PERMC_IN_GA(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_GA(T95, T96, T99, T106, deleteB_in_agga(T99, T95, T96, T105))
U4_GA(T95, T96, T99, T106, deleteB_out_agga(T99, T95, T96, T105)) → U5_GA(T95, T96, T99, T106, permC_in_ga(T105, T106))
U4_GA(T95, T96, T99, T106, deleteB_out_agga(T99, T95, T96, T105)) → PERMC_IN_GA(T105, T106)
SLOWSORTE_IN_GA(.(T16, .(T17, [])), .(T118, .(T119, []))) → U10_GA(T16, T17, T118, T119, deleteB_in_agga(T118, T16, T17, T26))
U10_GA(T16, T17, T118, T119, deleteB_out_agga(T118, T16, T17, T26)) → U11_GA(T16, T17, T118, T119, permC_in_ga(T26, T119))
U10_GA(T16, T17, T118, T119, deleteB_out_agga(T118, T16, T17, T26)) → PERMC_IN_GA(T26, T119)
U11_GA(T16, T17, T118, T119, permC_out_ga(T26, T119)) → U12_GA(T16, T17, T118, T119, leD_in_ga(T118, T119))
U11_GA(T16, T17, T118, T119, permC_out_ga(T26, T119)) → LED_IN_GA(T118, T119)
LED_IN_GA(s(T132), s(T133)) → U6_GA(T132, T133, leD_in_ga(T132, T133))
LED_IN_GA(s(T132), s(T133)) → LED_IN_GA(T132, T133)
SLOWSORTE_IN_GA(.(T16, .(T17, [])), .(T118, .(T145, []))) → U13_GA(T16, T17, T118, T145, deleteB_in_agga(T118, T16, T17, T26))
U13_GA(T16, T17, T118, T145, deleteB_out_agga(T118, T16, T17, T26)) → U14_GA(T16, T17, T118, T145, permC_in_ga(T26, T145))
U13_GA(T16, T17, T118, T145, deleteB_out_agga(T118, T16, T17, T26)) → PERMC_IN_GA(T26, T145)
U14_GA(T16, T17, T118, T145, permC_out_ga(T26, T145)) → U15_GA(T16, T17, T118, T145, leD_in_ga(T118, T145))
U14_GA(T16, T17, T118, T145, permC_out_ga(T26, T145)) → LED_IN_GA(T118, T145)

The TRS R consists of the following rules:

slowsortE_in_ga([], []) → slowsortE_out_ga([], [])
slowsortE_in_ga(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_ga(T16, T17, T20, T21, deleteB_in_agga(T20, T16, T17, X22))
deleteB_in_agga(T41, T41, T42, T42) → deleteB_out_agga(T41, T41, T42, T42)
deleteB_in_agga(T57, T55, T56, X59) → U2_agga(T57, T55, T56, X59, deleteA_in_aga(T57, T56, X59))
deleteA_in_aga(T70, .(T70, T71), T71) → deleteA_out_aga(T70, .(T70, T71), T71)
deleteA_in_aga(T81, .(T79, T80), X88) → U1_aga(T81, T79, T80, X88, deleteA_in_aga(T81, T80, X88))
U1_aga(T81, T79, T80, X88, deleteA_out_aga(T81, T80, X88)) → deleteA_out_aga(T81, .(T79, T80), X88)
U2_agga(T57, T55, T56, X59, deleteA_out_aga(T57, T56, X59)) → deleteB_out_agga(T57, T55, T56, X59)
U7_ga(T16, T17, T20, T21, deleteB_out_agga(T20, T16, T17, X22)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T20, .(T21, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_ga(T16, T17, T28, T27, deleteB_in_agga(T28, T16, T17, T26))
U8_ga(T16, T17, T28, T27, deleteB_out_agga(T28, T16, T17, T26)) → U9_ga(T16, T17, T28, T27, permC_in_ga(T26, T27))
permC_in_ga([], []) → permC_out_ga([], [])
permC_in_ga(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_ga(T95, T96, T99, T100, deleteB_in_agga(T99, T95, T96, X106))
U3_ga(T95, T96, T99, T100, deleteB_out_agga(T99, T95, T96, X106)) → permC_out_ga(.(T95, .(T96, [])), .(T99, .(T100, [])))
permC_in_ga(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_ga(T95, T96, T99, T106, deleteB_in_agga(T99, T95, T96, T105))
U4_ga(T95, T96, T99, T106, deleteB_out_agga(T99, T95, T96, T105)) → U5_ga(T95, T96, T99, T106, permC_in_ga(T105, T106))
U5_ga(T95, T96, T99, T106, permC_out_ga(T105, T106)) → permC_out_ga(.(T95, .(T96, [])), .(T99, .(T106, [])))
U9_ga(T16, T17, T28, T27, permC_out_ga(T26, T27)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T28, .(T27, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T118, .(T119, []))) → U10_ga(T16, T17, T118, T119, deleteB_in_agga(T118, T16, T17, T26))
U10_ga(T16, T17, T118, T119, deleteB_out_agga(T118, T16, T17, T26)) → U11_ga(T16, T17, T118, T119, permC_in_ga(T26, T119))
U11_ga(T16, T17, T118, T119, permC_out_ga(T26, T119)) → U12_ga(T16, T17, T118, T119, leD_in_ga(T118, T119))
leD_in_ga(s(T132), s(T133)) → U6_ga(T132, T133, leD_in_ga(T132, T133))
leD_in_ga(0, s(T140)) → leD_out_ga(0, s(T140))
leD_in_ga(0, 0) → leD_out_ga(0, 0)
U6_ga(T132, T133, leD_out_ga(T132, T133)) → leD_out_ga(s(T132), s(T133))
U12_ga(T16, T17, T118, T119, leD_out_ga(T118, T119)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T118, .(T119, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T118, .(T145, []))) → U13_ga(T16, T17, T118, T145, deleteB_in_agga(T118, T16, T17, T26))
U13_ga(T16, T17, T118, T145, deleteB_out_agga(T118, T16, T17, T26)) → U14_ga(T16, T17, T118, T145, permC_in_ga(T26, T145))
U14_ga(T16, T17, T118, T145, permC_out_ga(T26, T145)) → U15_ga(T16, T17, T118, T145, leD_in_ga(T118, T145))
U15_ga(T16, T17, T118, T145, leD_out_ga(T118, T145)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T118, .(T145, [])))

The argument filtering Pi contains the following mapping:
slowsortE_in_ga(x1, x2)  =  slowsortE_in_ga(x1)
[]  =  []
slowsortE_out_ga(x1, x2)  =  slowsortE_out_ga
.(x1, x2)  =  .(x1, x2)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
deleteB_in_agga(x1, x2, x3, x4)  =  deleteB_in_agga(x2, x3)
deleteB_out_agga(x1, x2, x3, x4)  =  deleteB_out_agga(x1, x4)
U2_agga(x1, x2, x3, x4, x5)  =  U2_agga(x5)
deleteA_in_aga(x1, x2, x3)  =  deleteA_in_aga(x2)
deleteA_out_aga(x1, x2, x3)  =  deleteA_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
permC_in_ga(x1, x2)  =  permC_in_ga(x1)
permC_out_ga(x1, x2)  =  permC_out_ga
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
U11_ga(x1, x2, x3, x4, x5)  =  U11_ga(x3, x5)
U12_ga(x1, x2, x3, x4, x5)  =  U12_ga(x5)
leD_in_ga(x1, x2)  =  leD_in_ga(x1)
s(x1)  =  s(x1)
U6_ga(x1, x2, x3)  =  U6_ga(x3)
0  =  0
leD_out_ga(x1, x2)  =  leD_out_ga
U13_ga(x1, x2, x3, x4, x5)  =  U13_ga(x5)
U14_ga(x1, x2, x3, x4, x5)  =  U14_ga(x3, x5)
U15_ga(x1, x2, x3, x4, x5)  =  U15_ga(x5)
SLOWSORTE_IN_GA(x1, x2)  =  SLOWSORTE_IN_GA(x1)
U7_GA(x1, x2, x3, x4, x5)  =  U7_GA(x5)
DELETEB_IN_AGGA(x1, x2, x3, x4)  =  DELETEB_IN_AGGA(x2, x3)
U2_AGGA(x1, x2, x3, x4, x5)  =  U2_AGGA(x5)
DELETEA_IN_AGA(x1, x2, x3)  =  DELETEA_IN_AGA(x2)
U1_AGA(x1, x2, x3, x4, x5)  =  U1_AGA(x5)
U8_GA(x1, x2, x3, x4, x5)  =  U8_GA(x5)
U9_GA(x1, x2, x3, x4, x5)  =  U9_GA(x5)
PERMC_IN_GA(x1, x2)  =  PERMC_IN_GA(x1)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x5)
U4_GA(x1, x2, x3, x4, x5)  =  U4_GA(x5)
U5_GA(x1, x2, x3, x4, x5)  =  U5_GA(x5)
U10_GA(x1, x2, x3, x4, x5)  =  U10_GA(x5)
U11_GA(x1, x2, x3, x4, x5)  =  U11_GA(x3, x5)
U12_GA(x1, x2, x3, x4, x5)  =  U12_GA(x5)
LED_IN_GA(x1, x2)  =  LED_IN_GA(x1)
U6_GA(x1, x2, x3)  =  U6_GA(x3)
U13_GA(x1, x2, x3, x4, x5)  =  U13_GA(x5)
U14_GA(x1, x2, x3, x4, x5)  =  U14_GA(x3, x5)
U15_GA(x1, x2, x3, x4, x5)  =  U15_GA(x5)

We have to consider all (P,R,Pi)-chains

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 3 SCCs with 22 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LED_IN_GA(s(T132), s(T133)) → LED_IN_GA(T132, T133)

The TRS R consists of the following rules:

slowsortE_in_ga([], []) → slowsortE_out_ga([], [])
slowsortE_in_ga(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_ga(T16, T17, T20, T21, deleteB_in_agga(T20, T16, T17, X22))
deleteB_in_agga(T41, T41, T42, T42) → deleteB_out_agga(T41, T41, T42, T42)
deleteB_in_agga(T57, T55, T56, X59) → U2_agga(T57, T55, T56, X59, deleteA_in_aga(T57, T56, X59))
deleteA_in_aga(T70, .(T70, T71), T71) → deleteA_out_aga(T70, .(T70, T71), T71)
deleteA_in_aga(T81, .(T79, T80), X88) → U1_aga(T81, T79, T80, X88, deleteA_in_aga(T81, T80, X88))
U1_aga(T81, T79, T80, X88, deleteA_out_aga(T81, T80, X88)) → deleteA_out_aga(T81, .(T79, T80), X88)
U2_agga(T57, T55, T56, X59, deleteA_out_aga(T57, T56, X59)) → deleteB_out_agga(T57, T55, T56, X59)
U7_ga(T16, T17, T20, T21, deleteB_out_agga(T20, T16, T17, X22)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T20, .(T21, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_ga(T16, T17, T28, T27, deleteB_in_agga(T28, T16, T17, T26))
U8_ga(T16, T17, T28, T27, deleteB_out_agga(T28, T16, T17, T26)) → U9_ga(T16, T17, T28, T27, permC_in_ga(T26, T27))
permC_in_ga([], []) → permC_out_ga([], [])
permC_in_ga(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_ga(T95, T96, T99, T100, deleteB_in_agga(T99, T95, T96, X106))
U3_ga(T95, T96, T99, T100, deleteB_out_agga(T99, T95, T96, X106)) → permC_out_ga(.(T95, .(T96, [])), .(T99, .(T100, [])))
permC_in_ga(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_ga(T95, T96, T99, T106, deleteB_in_agga(T99, T95, T96, T105))
U4_ga(T95, T96, T99, T106, deleteB_out_agga(T99, T95, T96, T105)) → U5_ga(T95, T96, T99, T106, permC_in_ga(T105, T106))
U5_ga(T95, T96, T99, T106, permC_out_ga(T105, T106)) → permC_out_ga(.(T95, .(T96, [])), .(T99, .(T106, [])))
U9_ga(T16, T17, T28, T27, permC_out_ga(T26, T27)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T28, .(T27, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T118, .(T119, []))) → U10_ga(T16, T17, T118, T119, deleteB_in_agga(T118, T16, T17, T26))
U10_ga(T16, T17, T118, T119, deleteB_out_agga(T118, T16, T17, T26)) → U11_ga(T16, T17, T118, T119, permC_in_ga(T26, T119))
U11_ga(T16, T17, T118, T119, permC_out_ga(T26, T119)) → U12_ga(T16, T17, T118, T119, leD_in_ga(T118, T119))
leD_in_ga(s(T132), s(T133)) → U6_ga(T132, T133, leD_in_ga(T132, T133))
leD_in_ga(0, s(T140)) → leD_out_ga(0, s(T140))
leD_in_ga(0, 0) → leD_out_ga(0, 0)
U6_ga(T132, T133, leD_out_ga(T132, T133)) → leD_out_ga(s(T132), s(T133))
U12_ga(T16, T17, T118, T119, leD_out_ga(T118, T119)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T118, .(T119, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T118, .(T145, []))) → U13_ga(T16, T17, T118, T145, deleteB_in_agga(T118, T16, T17, T26))
U13_ga(T16, T17, T118, T145, deleteB_out_agga(T118, T16, T17, T26)) → U14_ga(T16, T17, T118, T145, permC_in_ga(T26, T145))
U14_ga(T16, T17, T118, T145, permC_out_ga(T26, T145)) → U15_ga(T16, T17, T118, T145, leD_in_ga(T118, T145))
U15_ga(T16, T17, T118, T145, leD_out_ga(T118, T145)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T118, .(T145, [])))

The argument filtering Pi contains the following mapping:
slowsortE_in_ga(x1, x2)  =  slowsortE_in_ga(x1)
[]  =  []
slowsortE_out_ga(x1, x2)  =  slowsortE_out_ga
.(x1, x2)  =  .(x1, x2)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
deleteB_in_agga(x1, x2, x3, x4)  =  deleteB_in_agga(x2, x3)
deleteB_out_agga(x1, x2, x3, x4)  =  deleteB_out_agga(x1, x4)
U2_agga(x1, x2, x3, x4, x5)  =  U2_agga(x5)
deleteA_in_aga(x1, x2, x3)  =  deleteA_in_aga(x2)
deleteA_out_aga(x1, x2, x3)  =  deleteA_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
permC_in_ga(x1, x2)  =  permC_in_ga(x1)
permC_out_ga(x1, x2)  =  permC_out_ga
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
U11_ga(x1, x2, x3, x4, x5)  =  U11_ga(x3, x5)
U12_ga(x1, x2, x3, x4, x5)  =  U12_ga(x5)
leD_in_ga(x1, x2)  =  leD_in_ga(x1)
s(x1)  =  s(x1)
U6_ga(x1, x2, x3)  =  U6_ga(x3)
0  =  0
leD_out_ga(x1, x2)  =  leD_out_ga
U13_ga(x1, x2, x3, x4, x5)  =  U13_ga(x5)
U14_ga(x1, x2, x3, x4, x5)  =  U14_ga(x3, x5)
U15_ga(x1, x2, x3, x4, x5)  =  U15_ga(x5)
LED_IN_GA(x1, x2)  =  LED_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(10) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(11) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LED_IN_GA(s(T132), s(T133)) → LED_IN_GA(T132, T133)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
LED_IN_GA(x1, x2)  =  LED_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(12) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(13) Obligation:

Q DP problem:
The TRS P consists of the following rules:

LED_IN_GA(s(T132)) → LED_IN_GA(T132)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(14) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LED_IN_GA(s(T132)) → LED_IN_GA(T132)
    The graph contains the following edges 1 > 1

(15) YES

(16) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

DELETEA_IN_AGA(T81, .(T79, T80), X88) → DELETEA_IN_AGA(T81, T80, X88)

The TRS R consists of the following rules:

slowsortE_in_ga([], []) → slowsortE_out_ga([], [])
slowsortE_in_ga(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_ga(T16, T17, T20, T21, deleteB_in_agga(T20, T16, T17, X22))
deleteB_in_agga(T41, T41, T42, T42) → deleteB_out_agga(T41, T41, T42, T42)
deleteB_in_agga(T57, T55, T56, X59) → U2_agga(T57, T55, T56, X59, deleteA_in_aga(T57, T56, X59))
deleteA_in_aga(T70, .(T70, T71), T71) → deleteA_out_aga(T70, .(T70, T71), T71)
deleteA_in_aga(T81, .(T79, T80), X88) → U1_aga(T81, T79, T80, X88, deleteA_in_aga(T81, T80, X88))
U1_aga(T81, T79, T80, X88, deleteA_out_aga(T81, T80, X88)) → deleteA_out_aga(T81, .(T79, T80), X88)
U2_agga(T57, T55, T56, X59, deleteA_out_aga(T57, T56, X59)) → deleteB_out_agga(T57, T55, T56, X59)
U7_ga(T16, T17, T20, T21, deleteB_out_agga(T20, T16, T17, X22)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T20, .(T21, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_ga(T16, T17, T28, T27, deleteB_in_agga(T28, T16, T17, T26))
U8_ga(T16, T17, T28, T27, deleteB_out_agga(T28, T16, T17, T26)) → U9_ga(T16, T17, T28, T27, permC_in_ga(T26, T27))
permC_in_ga([], []) → permC_out_ga([], [])
permC_in_ga(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_ga(T95, T96, T99, T100, deleteB_in_agga(T99, T95, T96, X106))
U3_ga(T95, T96, T99, T100, deleteB_out_agga(T99, T95, T96, X106)) → permC_out_ga(.(T95, .(T96, [])), .(T99, .(T100, [])))
permC_in_ga(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_ga(T95, T96, T99, T106, deleteB_in_agga(T99, T95, T96, T105))
U4_ga(T95, T96, T99, T106, deleteB_out_agga(T99, T95, T96, T105)) → U5_ga(T95, T96, T99, T106, permC_in_ga(T105, T106))
U5_ga(T95, T96, T99, T106, permC_out_ga(T105, T106)) → permC_out_ga(.(T95, .(T96, [])), .(T99, .(T106, [])))
U9_ga(T16, T17, T28, T27, permC_out_ga(T26, T27)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T28, .(T27, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T118, .(T119, []))) → U10_ga(T16, T17, T118, T119, deleteB_in_agga(T118, T16, T17, T26))
U10_ga(T16, T17, T118, T119, deleteB_out_agga(T118, T16, T17, T26)) → U11_ga(T16, T17, T118, T119, permC_in_ga(T26, T119))
U11_ga(T16, T17, T118, T119, permC_out_ga(T26, T119)) → U12_ga(T16, T17, T118, T119, leD_in_ga(T118, T119))
leD_in_ga(s(T132), s(T133)) → U6_ga(T132, T133, leD_in_ga(T132, T133))
leD_in_ga(0, s(T140)) → leD_out_ga(0, s(T140))
leD_in_ga(0, 0) → leD_out_ga(0, 0)
U6_ga(T132, T133, leD_out_ga(T132, T133)) → leD_out_ga(s(T132), s(T133))
U12_ga(T16, T17, T118, T119, leD_out_ga(T118, T119)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T118, .(T119, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T118, .(T145, []))) → U13_ga(T16, T17, T118, T145, deleteB_in_agga(T118, T16, T17, T26))
U13_ga(T16, T17, T118, T145, deleteB_out_agga(T118, T16, T17, T26)) → U14_ga(T16, T17, T118, T145, permC_in_ga(T26, T145))
U14_ga(T16, T17, T118, T145, permC_out_ga(T26, T145)) → U15_ga(T16, T17, T118, T145, leD_in_ga(T118, T145))
U15_ga(T16, T17, T118, T145, leD_out_ga(T118, T145)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T118, .(T145, [])))

The argument filtering Pi contains the following mapping:
slowsortE_in_ga(x1, x2)  =  slowsortE_in_ga(x1)
[]  =  []
slowsortE_out_ga(x1, x2)  =  slowsortE_out_ga
.(x1, x2)  =  .(x1, x2)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
deleteB_in_agga(x1, x2, x3, x4)  =  deleteB_in_agga(x2, x3)
deleteB_out_agga(x1, x2, x3, x4)  =  deleteB_out_agga(x1, x4)
U2_agga(x1, x2, x3, x4, x5)  =  U2_agga(x5)
deleteA_in_aga(x1, x2, x3)  =  deleteA_in_aga(x2)
deleteA_out_aga(x1, x2, x3)  =  deleteA_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
permC_in_ga(x1, x2)  =  permC_in_ga(x1)
permC_out_ga(x1, x2)  =  permC_out_ga
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
U11_ga(x1, x2, x3, x4, x5)  =  U11_ga(x3, x5)
U12_ga(x1, x2, x3, x4, x5)  =  U12_ga(x5)
leD_in_ga(x1, x2)  =  leD_in_ga(x1)
s(x1)  =  s(x1)
U6_ga(x1, x2, x3)  =  U6_ga(x3)
0  =  0
leD_out_ga(x1, x2)  =  leD_out_ga
U13_ga(x1, x2, x3, x4, x5)  =  U13_ga(x5)
U14_ga(x1, x2, x3, x4, x5)  =  U14_ga(x3, x5)
U15_ga(x1, x2, x3, x4, x5)  =  U15_ga(x5)
DELETEA_IN_AGA(x1, x2, x3)  =  DELETEA_IN_AGA(x2)

We have to consider all (P,R,Pi)-chains

(17) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(18) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

DELETEA_IN_AGA(T81, .(T79, T80), X88) → DELETEA_IN_AGA(T81, T80, X88)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
DELETEA_IN_AGA(x1, x2, x3)  =  DELETEA_IN_AGA(x2)

We have to consider all (P,R,Pi)-chains

(19) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(20) Obligation:

Q DP problem:
The TRS P consists of the following rules:

DELETEA_IN_AGA(.(T79, T80)) → DELETEA_IN_AGA(T80)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(21) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • DELETEA_IN_AGA(.(T79, T80)) → DELETEA_IN_AGA(T80)
    The graph contains the following edges 1 > 1

(22) YES

(23) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

PERMC_IN_GA(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_GA(T95, T96, T99, T106, deleteB_in_agga(T99, T95, T96, T105))
U4_GA(T95, T96, T99, T106, deleteB_out_agga(T99, T95, T96, T105)) → PERMC_IN_GA(T105, T106)

The TRS R consists of the following rules:

slowsortE_in_ga([], []) → slowsortE_out_ga([], [])
slowsortE_in_ga(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_ga(T16, T17, T20, T21, deleteB_in_agga(T20, T16, T17, X22))
deleteB_in_agga(T41, T41, T42, T42) → deleteB_out_agga(T41, T41, T42, T42)
deleteB_in_agga(T57, T55, T56, X59) → U2_agga(T57, T55, T56, X59, deleteA_in_aga(T57, T56, X59))
deleteA_in_aga(T70, .(T70, T71), T71) → deleteA_out_aga(T70, .(T70, T71), T71)
deleteA_in_aga(T81, .(T79, T80), X88) → U1_aga(T81, T79, T80, X88, deleteA_in_aga(T81, T80, X88))
U1_aga(T81, T79, T80, X88, deleteA_out_aga(T81, T80, X88)) → deleteA_out_aga(T81, .(T79, T80), X88)
U2_agga(T57, T55, T56, X59, deleteA_out_aga(T57, T56, X59)) → deleteB_out_agga(T57, T55, T56, X59)
U7_ga(T16, T17, T20, T21, deleteB_out_agga(T20, T16, T17, X22)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T20, .(T21, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_ga(T16, T17, T28, T27, deleteB_in_agga(T28, T16, T17, T26))
U8_ga(T16, T17, T28, T27, deleteB_out_agga(T28, T16, T17, T26)) → U9_ga(T16, T17, T28, T27, permC_in_ga(T26, T27))
permC_in_ga([], []) → permC_out_ga([], [])
permC_in_ga(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_ga(T95, T96, T99, T100, deleteB_in_agga(T99, T95, T96, X106))
U3_ga(T95, T96, T99, T100, deleteB_out_agga(T99, T95, T96, X106)) → permC_out_ga(.(T95, .(T96, [])), .(T99, .(T100, [])))
permC_in_ga(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_ga(T95, T96, T99, T106, deleteB_in_agga(T99, T95, T96, T105))
U4_ga(T95, T96, T99, T106, deleteB_out_agga(T99, T95, T96, T105)) → U5_ga(T95, T96, T99, T106, permC_in_ga(T105, T106))
U5_ga(T95, T96, T99, T106, permC_out_ga(T105, T106)) → permC_out_ga(.(T95, .(T96, [])), .(T99, .(T106, [])))
U9_ga(T16, T17, T28, T27, permC_out_ga(T26, T27)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T28, .(T27, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T118, .(T119, []))) → U10_ga(T16, T17, T118, T119, deleteB_in_agga(T118, T16, T17, T26))
U10_ga(T16, T17, T118, T119, deleteB_out_agga(T118, T16, T17, T26)) → U11_ga(T16, T17, T118, T119, permC_in_ga(T26, T119))
U11_ga(T16, T17, T118, T119, permC_out_ga(T26, T119)) → U12_ga(T16, T17, T118, T119, leD_in_ga(T118, T119))
leD_in_ga(s(T132), s(T133)) → U6_ga(T132, T133, leD_in_ga(T132, T133))
leD_in_ga(0, s(T140)) → leD_out_ga(0, s(T140))
leD_in_ga(0, 0) → leD_out_ga(0, 0)
U6_ga(T132, T133, leD_out_ga(T132, T133)) → leD_out_ga(s(T132), s(T133))
U12_ga(T16, T17, T118, T119, leD_out_ga(T118, T119)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T118, .(T119, [])))
slowsortE_in_ga(.(T16, .(T17, [])), .(T118, .(T145, []))) → U13_ga(T16, T17, T118, T145, deleteB_in_agga(T118, T16, T17, T26))
U13_ga(T16, T17, T118, T145, deleteB_out_agga(T118, T16, T17, T26)) → U14_ga(T16, T17, T118, T145, permC_in_ga(T26, T145))
U14_ga(T16, T17, T118, T145, permC_out_ga(T26, T145)) → U15_ga(T16, T17, T118, T145, leD_in_ga(T118, T145))
U15_ga(T16, T17, T118, T145, leD_out_ga(T118, T145)) → slowsortE_out_ga(.(T16, .(T17, [])), .(T118, .(T145, [])))

The argument filtering Pi contains the following mapping:
slowsortE_in_ga(x1, x2)  =  slowsortE_in_ga(x1)
[]  =  []
slowsortE_out_ga(x1, x2)  =  slowsortE_out_ga
.(x1, x2)  =  .(x1, x2)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
deleteB_in_agga(x1, x2, x3, x4)  =  deleteB_in_agga(x2, x3)
deleteB_out_agga(x1, x2, x3, x4)  =  deleteB_out_agga(x1, x4)
U2_agga(x1, x2, x3, x4, x5)  =  U2_agga(x5)
deleteA_in_aga(x1, x2, x3)  =  deleteA_in_aga(x2)
deleteA_out_aga(x1, x2, x3)  =  deleteA_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
permC_in_ga(x1, x2)  =  permC_in_ga(x1)
permC_out_ga(x1, x2)  =  permC_out_ga
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
U11_ga(x1, x2, x3, x4, x5)  =  U11_ga(x3, x5)
U12_ga(x1, x2, x3, x4, x5)  =  U12_ga(x5)
leD_in_ga(x1, x2)  =  leD_in_ga(x1)
s(x1)  =  s(x1)
U6_ga(x1, x2, x3)  =  U6_ga(x3)
0  =  0
leD_out_ga(x1, x2)  =  leD_out_ga
U13_ga(x1, x2, x3, x4, x5)  =  U13_ga(x5)
U14_ga(x1, x2, x3, x4, x5)  =  U14_ga(x3, x5)
U15_ga(x1, x2, x3, x4, x5)  =  U15_ga(x5)
PERMC_IN_GA(x1, x2)  =  PERMC_IN_GA(x1)
U4_GA(x1, x2, x3, x4, x5)  =  U4_GA(x5)

We have to consider all (P,R,Pi)-chains

(24) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(25) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

PERMC_IN_GA(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_GA(T95, T96, T99, T106, deleteB_in_agga(T99, T95, T96, T105))
U4_GA(T95, T96, T99, T106, deleteB_out_agga(T99, T95, T96, T105)) → PERMC_IN_GA(T105, T106)

The TRS R consists of the following rules:

deleteB_in_agga(T41, T41, T42, T42) → deleteB_out_agga(T41, T41, T42, T42)
deleteB_in_agga(T57, T55, T56, X59) → U2_agga(T57, T55, T56, X59, deleteA_in_aga(T57, T56, X59))
U2_agga(T57, T55, T56, X59, deleteA_out_aga(T57, T56, X59)) → deleteB_out_agga(T57, T55, T56, X59)
deleteA_in_aga(T70, .(T70, T71), T71) → deleteA_out_aga(T70, .(T70, T71), T71)
deleteA_in_aga(T81, .(T79, T80), X88) → U1_aga(T81, T79, T80, X88, deleteA_in_aga(T81, T80, X88))
U1_aga(T81, T79, T80, X88, deleteA_out_aga(T81, T80, X88)) → deleteA_out_aga(T81, .(T79, T80), X88)

The argument filtering Pi contains the following mapping:
[]  =  []
.(x1, x2)  =  .(x1, x2)
deleteB_in_agga(x1, x2, x3, x4)  =  deleteB_in_agga(x2, x3)
deleteB_out_agga(x1, x2, x3, x4)  =  deleteB_out_agga(x1, x4)
U2_agga(x1, x2, x3, x4, x5)  =  U2_agga(x5)
deleteA_in_aga(x1, x2, x3)  =  deleteA_in_aga(x2)
deleteA_out_aga(x1, x2, x3)  =  deleteA_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x5)
PERMC_IN_GA(x1, x2)  =  PERMC_IN_GA(x1)
U4_GA(x1, x2, x3, x4, x5)  =  U4_GA(x5)

We have to consider all (P,R,Pi)-chains

(26) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(27) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PERMC_IN_GA(.(T95, .(T96, []))) → U4_GA(deleteB_in_agga(T95, T96))
U4_GA(deleteB_out_agga(T99, T105)) → PERMC_IN_GA(T105)

The TRS R consists of the following rules:

deleteB_in_agga(T41, T42) → deleteB_out_agga(T41, T42)
deleteB_in_agga(T55, T56) → U2_agga(deleteA_in_aga(T56))
U2_agga(deleteA_out_aga(T57, X59)) → deleteB_out_agga(T57, X59)
deleteA_in_aga(.(T70, T71)) → deleteA_out_aga(T70, T71)
deleteA_in_aga(.(T79, T80)) → U1_aga(deleteA_in_aga(T80))
U1_aga(deleteA_out_aga(T81, X88)) → deleteA_out_aga(T81, X88)

The set Q consists of the following terms:

deleteB_in_agga(x0, x1)
U2_agga(x0)
deleteA_in_aga(x0)
U1_aga(x0)

We have to consider all (P,Q,R)-chains.

(28) UsableRulesReductionPairsProof (EQUIVALENT transformation)

By using the usable rules with reduction pair processor [LPAR04] with a polynomial ordering [POLO], all dependency pairs and the corresponding usable rules [FROCOS05] can be oriented non-strictly. All non-usable rules are removed, and those dependency pairs and usable rules that have been oriented strictly or contain non-usable symbols in their left-hand side are removed as well.

The following dependency pairs can be deleted:

PERMC_IN_GA(.(T95, .(T96, []))) → U4_GA(deleteB_in_agga(T95, T96))
U4_GA(deleteB_out_agga(T99, T105)) → PERMC_IN_GA(T105)
The following rules are removed from R:

deleteB_in_agga(T41, T42) → deleteB_out_agga(T41, T42)
U2_agga(deleteA_out_aga(T57, X59)) → deleteB_out_agga(T57, X59)
deleteA_in_aga(.(T70, T71)) → deleteA_out_aga(T70, T71)
deleteA_in_aga(.(T79, T80)) → U1_aga(deleteA_in_aga(T80))
U1_aga(deleteA_out_aga(T81, X88)) → deleteA_out_aga(T81, X88)
Used ordering: POLO with Polynomial interpretation [POLO]:

POL(.(x1, x2)) = 1 + 2·x1 + 2·x2   
POL(PERMC_IN_GA(x1)) = 1 + x1   
POL(U1_aga(x1)) = 1 + x1   
POL(U2_agga(x1)) = 2 + x1   
POL(U4_GA(x1)) = 2·x1   
POL([]) = 0   
POL(deleteA_in_aga(x1)) = x1   
POL(deleteA_out_aga(x1, x2)) = x1 + 2·x2   
POL(deleteB_in_agga(x1, x2)) = 2 + x1 + 2·x2   
POL(deleteB_out_agga(x1, x2)) = 1 + x1 + 2·x2   

(29) Obligation:

Q DP problem:
P is empty.
The TRS R consists of the following rules:

deleteB_in_agga(T55, T56) → U2_agga(deleteA_in_aga(T56))

The set Q consists of the following terms:

deleteB_in_agga(x0, x1)
U2_agga(x0)
deleteA_in_aga(x0)
U1_aga(x0)

We have to consider all (P,Q,R)-chains.

(30) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(31) YES